//
//  NotifyingClass.m
//  TextApp
//
//  Created by panos on 16/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"

@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	//float circumference = [self generateValue]; CONSOLIDATED
	[textView insertText:
	 [NSString stringWithFormat:
	  @"The circumference is: %f\n",[self generateValue]]];	
}

- (float)generateValue
{
	//float radius = [textField floatValue];  CONSOLIDATED
	return [self circumferenceFromRadius:[textField floatValue]];
}

-(float)circumferenceFromRadius:(float)radius
{
	return 2*pi*radius;
}

@end
